<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ include file="/templates/menu.jsp"%>
<%@ page errorPage="/templates/commonErrorPage.jsp"%>
<%@ page import="com.training.dto.Employee"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
 	<c:choose>
		<c:when test="${sessionScope.empList != null }">
			<table>
				<thead>
					<tr>
						<th>Employee ID</th>
						<th>First Name</th>
						<th>Last Name</th>
					</tr>
				</thead>
				<tbody>

					<c:forEach var="emp" items="${sessionScope.empList}">
						<tr>
							<td><c:out value="${emp.getEmpId()}"></c:out></td>
							<td><c:out value="${emp.getFirstName()}"></c:out></td>
							<td><c:out value="${emp.getLastName()}"></c:out></td>

						</tr>
					</c:forEach>
				</tbody>
			</table>
		</c:when>
		<c:otherwise>
        No  Employees found with given Search criteria .....
    </c:otherwise>
	</c:choose>




</body>
</html>